import {
  marketManagement,
} from '@/core/icons';
import RouteView from '@/components/publicRouters/publicRouters';

const marketManagementrRouter = {
  path: '/marketManagement',
  name: 'marketManagement',
  redirect: '/child/marketManagement/marketInfo',
  hidden: false,
  component: RouteView,
  meta: {
    title: '市场管理',
    icon: marketManagement,
  },
  children: [
    {
      path: '/child/marketManagement/marketInfo',
      name: 'marketInfo',
      component: RouteView,
      redirect: '/marketManagement/marketInfo/marketInfoFill',
      meta: {
        title: '市场信息',
      },
      children: [
        {
          path: '/marketManagement/marketInfo/marketInfoFill',
          name: 'marketInfoFill',
          component: () => import('@/views/marketManagement/marketInfo/marketInfoFill/marketInfoFill'),
          meta: {
            title: '市场信息填报',
          },
        },
        {
          path: '/marketManagement/marketInfo/marketInfoLook',
          name: 'marketInfoLook',
          component: () => import('@/views/marketManagement/marketInfo/marketInfoLook/marketInfoLook'),
          meta: {
            title: '市场信息查看',
          },
        },
        {
          path: '/marketManagement/marketInfo/marketInfoApproval',
          name: 'marketInfoApproval',
          component: () => import('@/views/marketManagement/marketInfo/marketInfoApproval/marketInfoApproval'),
          meta: {
            title: '市场信息审批',
          },
        },
      ],
    },
    {
      path: '/marketManagement/marketApprovalProcessConfiguration',
      name: 'marketApprovalProcessConfiguration',
      component: () => import('@/views/marketManagement/marketApprovalProcessConfiguration/marketApprovalProcessConfiguration'),
      meta: {
        title: '流程配置',
      },
    },

  ],
};

export default marketManagementrRouter;